//
//  YuangongDetailController.m
//  Ten
//
//  Created by anfuer on 2018/11/17.
//  Copyright © 2018年 xg韦. All rights reserved.
//

#import "YuangongDetailController.h"
#import "LookjianliCell1.h"
#import "yuangongCell.h"
@interface YuangongDetailController ()
@property (weak, nonatomic) IBOutlet UITableView *tbv;

@end

@implementation YuangongDetailController

- (void)viewDidLoad {
    [super viewDidLoad];
    _tbv.separatorColor=[UIColor clearColor];
    // Do any additional setup after loading the view.
}
- (IBAction)back:(UIButton *)sender {
    [self.navigationController popViewControllerAnimated:YES];
}

#pragma mark 返回分组数
-(NSInteger)numberOfSectionsInTableView:(UITableView *)tableView{
    return 2;
}

#pragma mark 返回每组行数
-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
    return  1;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath;
{
    if (indexPath.section==0) {
        LookjianliCell1*cell=[LookjianliCell1 CellWithTableView:tableView];
        cell.selectionStyle = UITableViewCellSelectionStyleNone;
        
        return cell;
    }else
    {
        yuangongCell*cell=[yuangongCell CellWithTableView:tableView];
        cell.selectionStyle = UITableViewCellSelectionStyleNone;
        
        return cell;
    }
   
}
#pragma mark 设置分组头高度
-(CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section{
    return 5;
}


#pragma mark 设置尾部说明内容高度
-(CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section{
    return 0;
}

#pragma mark 设置每行高度
-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{
    if (indexPath.section==0) {
         return  [LookjianliCell1 FSCellHeightForTableView:tableView indexPath:indexPath cacheKey:@"LookjianliCell1" cellContentViewWidth:0 bottomOffset:20];
    }else
    {
        return  [yuangongCell FSCellHeightForTableView:tableView indexPath:indexPath cacheKey:@"yuangongCell" cellContentViewWidth:0 bottomOffset:0];
    }
   
}
#pragma mark 点击事件
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath

{
    
}


@end
